package com.wangjinhai.fallback;

import com.wangjinhai.service.UserService;
import org.springframework.stereotype.Component;

/**
 * @Author: 王金海
 * @Description:
 * @Date: Created by Administrator on 2018/8/14.
 * @Modified By:
 */
@Component
public class UserServiceFallback implements UserService{
    @Override
    public String sayHi(String message) {
        return String.format("Hi，your message is : %s but request error.",message);
    }
}
